package com.wkn.wknAdmin.service;

import com.wkn.wknAdmin.entity.Menu;
import com.wkn.wknAdmin.entity.Role;
import com.wkn.wknAdmin.result.ResultVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Title:
 * @Description:
 * @Author: WKN
 * CreateDate: 2022/8/13 14:34
 */
public interface MenuService {



    /**
     *  获取全部菜单
     * @return
     */
    ResultVO findAll();


    /**
     * 添加或更新菜单
     * @param menu
     * @return
     */
    ResultVO save(Menu menu);



    /**
     *  查询单个菜单
     * @param mname
     * @return
     */
    Menu getOne(@Param("mname")String mname);


    /**
     * 根据id批量查询
     * @param ids
     * @return
     */
    List<Menu> findMenuByIds(@RequestBody List<Integer> ids);


    List<Integer> findAllIds();






}
